package com.ruoyi.system.utils.rabbitMq.topic;//package com.letter.personal.util.rabbitMq.topic;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.core.TopicExchange;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//
//@Configuration
//public class TopicRabbitConfig {
//
//
//    @Bean
//    public Queue topic1() {
//        return new Queue("topic.1");
//    }
//
//    @Bean
//    public Queue topic2() {
//        return new Queue("topic.2");
//    }
//
//    @Bean
//    TopicExchange exchange() {
//        return new TopicExchange("topicExchange");
//    }
//
//    @Bean
//    Binding bindingExchangeMessage(Queue topic1, TopicExchange exchange) {
//        return BindingBuilder.bind(topic1).to(exchange).with("topic.1");
//    }
//
//    @Bean
//    Binding bindingExchangeMessages(Queue topic2, TopicExchange exchange) {
//        return BindingBuilder.bind(topic2).to(exchange).with("topic.#");
//    }
//}
